﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace PhysicsFmuDeluxeDotNet
{
    public partial class CodigoFonte : Form
    {
        public CodigoFonte()
        {
            InitializeComponent();
        }

        private void CodigoFonte_Load(object sender, EventArgs e)
        {
            //Carregar codigo fonte
            rtxtCodigoFonte.LoadFile("Documentos\\codigofonte.rtf");

            //Contar caracteres & linhas e exibir na barra de status
            statusLinhas.Text = "Caracteres: " + rtxtCodigoFonte.Text.Length.ToString() +
                " Linhas: " + rtxtCodigoFonte.Lines.Length.ToString();
        }

        private void fecharescToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //Fechar form
            this.Close();
        }
    }
}
